home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 April: Mac OS SDK / Dev.CD Apr 00 SDK1.toast / Development Kits / Mac OS / AppleShare IP 6.3 SDK / ASIP Registry / Headers / AppleShareFileServerRegistry.a next >
Encoding:
Text File  |  1999-11-01  |  14.1 KB  |  326 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        AppleShareFileServerRegistry.a
  3. ;
  4. ;    Contains:    Registry records for file server.
  5. ;
  6. ;    Version:    Technology:    AppleShare IP 6.0
  7. ;                Release:    ASIP 6.2 SDK - Wednesday, August 25, 1999 09:29:55
  8. ;
  9. ;    Copyright:    © 1995-1999 by Apple Computer, Inc., all rights reserved.
  10. ;
  11. ;    Bugs?:        For bug reports, consult the following page on
  12. ;                the World Wide Web:
  13. ;
  14. ;                    http://developer.apple.com/bugreporter/
  15. ;
  16. ;
  17.     IF &TYPE('__APPLESHAREFILESERVERREGISTRY__') = 'UNDEFINED' THEN
  18. __APPLESHAREFILESERVERREGISTRY__ SET 1
  19.  
  20.     IF &TYPE('__FILES__') = 'UNDEFINED' THEN
  21.     include 'Files.a'
  22.     ENDIF
  23.  
  24. Str42                    RECORD 0
  25. elements                 ds.b    43
  26.                          ORG 44
  27. sizeof                     EQU *                    ; size:   $2C (44)
  28.                         ENDR
  29.  
  30.  
  31. Str199                    RECORD 0
  32. elements                 ds.b    200
  33. sizeof                     EQU *                    ; size:   $C8 (200)
  34.                         ENDR
  35.  
  36.  
  37.  
  38. kFSCreatorSig                    EQU        'ipwf'                ; Attribute Signature for FileServer Service object attributes
  39.  
  40.                                                             ; Attribute Types for FileServer Service object each attribute 
  41. kFSServerInfoType                EQU        'srvr'                ; ServerInfo
  42. kFSServerGreetingType            EQU        'gret'
  43. kFSCacheInfoType                EQU        'cach'
  44. kFSIdleUserInfoType                EQU        'idle'
  45. kFSAdminInfoType                EQU        'admm'
  46. kFSHTTPInfoType                    EQU        'http'
  47. kFSHTTPFolderType                EQU        'hfol'
  48. kFSHTTPFileType                    EQU        'hfil'
  49. kFSHTTPPluginType                EQU        'hplg'
  50. kFSMultiWebDirSig                EQU        'webd'                ; Multi Domain signature 
  51. kFSHTTPWebDirCountType            EQU        'domC'
  52. kFSHTTPWebDirType                EQU        '0000'
  53. kFSFTPInfoType                    EQU        'ftp '
  54. kFSAFPInfoType                    EQU        'afp '
  55. kFSSMBInfoType                    EQU        'smb '
  56. kFSMimeType                        EQU        'mime'
  57. kFSIPFilterType                    EQU        'filt'
  58. kFSMaxConnection                EQU        'maxc'                ; max concurrent connection 
  59.                                                             ; additions for ASIP 6.2
  60. kFSRestrictToSingleLogin        EQU        'r2sL'                ; Boolean; default false 
  61. kFSNewFolderOwner                EQU        'newF'                ; Boolean; default false 
  62. kFSRegisterFTPwithNSL            EQU        'Nftp'                ; Boolean; default true 
  63. kFSRegisterAFPwithNSL            EQU        'Nafp'                ; Boolean; default true 
  64. kFSRegisterHTTPwithNSL            EQU        'Nweb'                ; Boolean; default true 
  65. kFSAppleTalkAllowed                EQU        'atlk'                ; Boolean; default depends on Easy Setup 
  66. kFSSendGreetingOnce                EQU        '1grt'                ; Boolean; default true 
  67. kFSSleepTime                    EQU        'inso'                ; UInt32 in seconds; default 86400 (24 hours) 
  68. ;  Service specific advanced options 
  69.  
  70. kFSAFPTCPSig                    EQU        'afpt'                ; AFP over TCP port signature 
  71. kFSSMBInfoSig                    EQU        'smb '                ; SMB over TCP port signature 
  72. kFSHTTPInfoSig                    EQU        'http'                ; HTTP port signature 
  73. kFSFTPInfoSig                    EQU        'ftp '                ; FTP port signature 
  74.  
  75. kFSPortType                        EQU        'port'                ; port number (UInt16) for all services 
  76. kFSSessionTimeout                EQU        'ssto'                ; session timeouts for all services (SInt32) 
  77.  
  78. kFSTransferTimeout                EQU        'trto'                ; transfer timeout for kFSFTPInfoSig (SInt32) 
  79. kFSKeepAliveTimeout                EQU        'kato'                ; keep alive timeout for kFSHTTPInfoSig (SInt32) 
  80. kFSCGITimeout                    EQU        'cgto'                ; CGI timeout for kFSHTTPInfoSig (SInt32) 
  81. kFSLogSize                        EQU        'logs'                ; Log Size - for kFSHTTPInfoSig (UInt32) 
  82. ;  UAM information... 
  83.  
  84. kFSUAMInfoSig                    EQU        'uam '                ; Signature 
  85.  
  86.  
  87. kFSNumUAMS                        EQU        'uamc'                ; Number of UAMs (UInt32) 
  88. kFSUAMNames                        EQU        'uams'                ; UAM names (buffer of packed pascal strings) 
  89. ; ----------------------------------------------------------
  90. ;         Server Preference - General Information                
  91. ; ----------------------------------------------------------
  92.  
  93. kFSServerInfoVersion            EQU        1
  94.  
  95. ServerInfo                RECORD 0
  96. versionNumber             ds.w    1                ; offset: $0 (0)        ;  version number for this record 
  97. fileServerVersion         ds.w    1                ; offset: $2 (2)        ;  version# for file server 
  98. userActivityLimit         ds.w    1                ; offset: $4 (4)        ;  user activity limit in % 
  99. maxLogin                 ds.w    1                ; offset: $6 (6)        ;  maximum client connections 
  100. maxGuestAccess             ds.w    1                ; offset: $8 (8)        ;  maximum number of guest and anonymous logins 
  101. shutdownMinutes             ds.w    1                ; offset: $A (10)        ;  minutes until shutdown 
  102. sizeof                     EQU *                    ; size:   $C (12)
  103.                         ENDR
  104. ; ----------------------------------------------------------
  105. ;         Server Preference - connect info & Login Greeting    
  106. ; ----------------------------------------------------------
  107.  
  108. kFSServerGreetingVersion        EQU        1
  109. ServerGreeting            RECORD 0
  110. versionNumber             ds.w    1                ; offset: $0 (0)        ;  version number for this record 
  111. greetingMsg                 ds        Str199            ; offset: $2 (2)        ;  login greeting 
  112. sizeof                     EQU *                    ; size:   $CA (202)
  113.                         ENDR
  114. ; ----------------------------------------------------------
  115. ;         Server Preference - Additional Cache Information    
  116. ; ----------------------------------------------------------
  117.  
  118. kFSCacheInfoVersion                EQU        1
  119. CacheInfo                RECORD 0
  120. versionNumber             ds.w    1                ; offset: $0 (0)        ;  version number for this record 
  121. cacheForOthers             ds.l    1                ; offset: $2 (2)        ;  memory to be reserved for other applications 
  122. sizeof                     EQU *                    ; size:   $6 (6)
  123.                         ENDR
  124. ; ----------------------------------------------------------
  125. ;         Server Preference - Idle User Information            
  126. ; ----------------------------------------------------------
  127. ;  idleFlag bits. 
  128.  
  129. kFSIdleDisconEnabledMask        EQU        $0001                ; allow to disconnect idle users 
  130. kFSDisconExeptOpenFilesMask        EQU        $0002                ; if true, disconnect except open file users 
  131. kFSDisconSuperUserMask            EQU        $0004                ; if true, isconnect idel super users 
  132. kFSDisconNormalUserMask            EQU        $0008                ; if true, disconnect idle normal users 
  133. kFSDisconGuestUserMask            EQU        $0010                ; if true, disconnect idle guest users 
  134.  
  135.  
  136. kFSIdleUserInfoVersion            EQU        1
  137. IdleUserInfo            RECORD 0
  138. versionNumber             ds.w    1                ; offset: $0 (0)        ;  version number for this record 
  139. idleFlag                 ds.w    1                ; offset: $2 (2)        ;  see above 
  140. idleMinute                 ds.w    1                ; offset: $4 (4)        ;  max # of minute for idle users 
  141. disconnectMsg             ds        Str199            ; offset: $6 (6)        ;  disconnect message 
  142. sizeof                     EQU *                    ; size:   $CE (206)
  143.                         ENDR
  144. ; ----------------------------------------------------------
  145. ;         Server Preference - Serial Miscelleneous Information
  146. ; ----------------------------------------------------------
  147.  
  148. kFSAdminInfoVersion                EQU        1
  149. AdminInfo                RECORD 0
  150. versionNumber             ds.w    1                ; offset: $0 (0)        ;  version number for this record 
  151. namePhone                 ds        Str31            ; offset: $2 (2)        ;  name & phone 
  152. organization             ds        Str31            ; offset: $22 (34)        ;  organization 
  153. sizeof                     EQU *                    ; size:   $42 (66)
  154.                         ENDR
  155. ; ----------------------------------------------------------
  156. ;         Server Preference - HTTP Information                
  157. ; ----------------------------------------------------------
  158. ;  Flag bits.     
  159.  
  160. kFSMultiDomainEnabled            EQU        $0001                ; allow multi-domain support 
  161. kFSDirListingEnabled            EQU        $0002                ; allow directory listing 
  162. kFSAutoShareWebFolder            EQU        $0004                ; if on, web folder share point at start up; server will clear 
  163.  
  164. kFSHTTPServiceInfoVersion        EQU        2
  165.  
  166. kFSHTTPEnable                    EQU        1                    ; enable HTTP
  167. kFSHTTPLogEnable                EQU        1                    ; enable HTTP Log
  168. kFSHTTPGuestEnable                EQU        1                    ; guest turned on for HTTP
  169. HTTPServiceInfo            RECORD 0
  170. versionNumber             ds.w    1                ; offset: $0 (0)        ;  version number for this record 
  171. enabled                     ds.w    1                ; offset: $2 (2)        ;  Enable HTTP, 1-enable, 0-not enable 
  172. status                     ds.w    1                ; offset: $4 (4)
  173. logEnabled                 ds.w    1                ; offset: $6 (6)        ;  Enable HTTP Log, 1-enable, 0-not enable 
  174. maxConnect                 ds.w    1                ; offset: $8 (8)        ;  HTTP maximum client connections 
  175. guestEnabled             ds.w    1                ; offset: $A (10)        ;  Whether guest allowed for HTTP 
  176. flag                     ds.l    1                ; offset: $C (12)        ;  new field for ASIP6 
  177. sizeof                     EQU *                    ; size:   $10 (16)
  178.                         ENDR
  179. HTTPFolderRec            RECORD 0
  180. vRefNum                     ds.w    1                ; offset: $0 (0)        ;  HTML folder path vRefNum
  181. volumeName                 ds        Str27            ; offset: $2 (2)        ;  HTML folder path volume name
  182. volCreateDate             ds.l    1                ; offset: $1E (30)        ;  HTML folder path volume creation date
  183. dirID                     ds.l    1                ; offset: $22 (34)        ;  HTML folder path DirID
  184. webFolderPath             ds        Str255            ; offset: $26 (38)        ;  HTML folder path. Does NOT include volume name 
  185. sizeof                     EQU *                    ; size:   $126 (294)
  186.                         ENDR
  187. HTTPFileRec                RECORD 0
  188. partialPath                 ds        Str255            ; offset: $0 (0)        ;  partial path to HTML file starting from the Web folder 
  189. sizeof                     EQU *                    ; size:   $100 (256)
  190.                         ENDR
  191.  
  192. kFSPlugInEnable                    EQU        1                    ; enable Plug-ins
  193. kFSPlugInLoggingEnable            EQU        1                    ; enable Plug-in logging
  194. HTTPPlugInsRec            RECORD 0
  195. pluginEnable             ds.w    1                ; offset: $0 (0)        ;  Plug-ins,  1-enable, 0-not enable 
  196. loggingEnable             ds.w    1                ; offset: $2 (2)        ;  Plug-in logging, 1-enable, 0-not enable 
  197. memSize                     ds.l    1                ; offset: $4 (4)        ;  Plug-in memory allocation 
  198. preProcessorSpec         ds        FSSpec            ; offset: $8 (8)        ;  Preprocessor plugin spec 
  199. postProcessorSpec         ds        FSSpec            ; offset: $4E (78)        ;  Postprocessor plugin spec 
  200. errorSpec                 ds        FSSpec            ; offset: $94 (148)        ;  Error plugin spec 
  201. sizeof                     EQU *                    ; size:   $DA (218)
  202.                         ENDR
  203. VolSpec                    RECORD 0
  204. vName                     ds.b    33                ; offset: $0 (0)        ;  pascal string because FSSpec uses pascal string
  205. filler                     ds.b    1                ; offset: $21 (33)
  206. vRefNum                     ds.w    1                ; offset: $22 (34)
  207. vCreateDate                 ds.l    1                ; offset: $24 (36)
  208. sizeof                     EQU *                    ; size:   $28 (40)
  209.                         ENDR
  210.  
  211. kFSHTTPWebDirCountRecVersion    EQU        1
  212. HTTPWebDirCountRec        RECORD 0
  213. count                     ds.w    1                ; offset: $0 (0)        ;  How many HTTPWebDirRec there are 
  214. version                     ds.w    1                ; offset: $2 (2)        ;  Version of the HTTPWebDirRec 
  215. sizeof                     EQU *                    ; size:   $4 (4)
  216.                         ENDR
  217.  
  218. kFSWebFolderEnabled                EQU        1
  219.  
  220. kFSAddressTypeDNS                EQU        0
  221. kFSAddressTypeIPAddress            EQU        1
  222. HTTPWebDirRec            RECORD 0
  223. enabled                     ds.w    1                ; offset: $0 (0)        ;  1 == this web folder enabled, 0 == disabled 
  224. addressType                 ds.w    1                ; offset: $2 (2)        ;  Indicates how to decode addressText: 0 == DNS name, 1 = IP Address (in ASCII) 
  225. addressText                 ds        Str63            ; offset: $4 (4)        ;  Domain name or IP address (in ASCII) of this web folder (pascal str) See addressType field 
  226. portNumber                 ds.w    1                ; offset: $44 (68)        ;  Port number for this web folder's IP address (InetPort) 
  227. volSpec                     ds        VolSpec            ; offset: $46 (70)        ;  Volume specifier 
  228. dirID                     ds.l    1                ; offset: $6E (110)        ;  Dir ID of this web folder 
  229. sizeof                     EQU *                    ; size:   $72 (114)
  230.                         ENDR
  231. ; ----------------------------------------------------------
  232. ;         Server Preference - FTP Information                    
  233. ; ----------------------------------------------------------
  234.  
  235. kFSFTPServiceInfoVersion        EQU        1
  236. FTPServiceInfo            RECORD 0
  237. versionNumber             ds.w    1                ; offset: $0 (0)        ;  version number for this record 
  238. ftpEnable                 ds.w    1                ; offset: $2 (2)        ;  Enable FTP, 1-enable, 0-not enable 
  239. status                     ds.w    1                ; offset: $4 (4)
  240. ftpAnonymousEnable         ds.w    1                ; offset: $6 (6)        ;  Enable Anonymous Login, 1-enable, 0-not enable 
  241. sizeof                     EQU *                    ; size:   $8 (8)
  242.                         ENDR
  243. ; ----------------------------------------------------------
  244. ;         Server Preference - AFP Information                    
  245. ; ----------------------------------------------------------
  246.  
  247. kFSAFPServiceInfoVersion        EQU        1
  248. AFPServiceInfo            RECORD 0
  249. versionNumber             ds.w    1                ; offset: $0 (0)        ;  version number for this record 
  250. afpOverTCPIPEnable         ds.w    1                ; offset: $2 (2)        ;  Enable AFP over TCPIP, 1-enable, 0-not enable 
  251. afpOverTCPIPStatus         ds.w    1                ; offset: $4 (4)
  252. afpOverATalkEnable         ds.w    1                ; offset: $6 (6)        ;  Enable AFP over AppleTalk, 1-enable, 0-not enable 
  253. sizeof                     EQU *                    ; size:   $8 (8)
  254.                         ENDR
  255. ; ----------------------------------------------------------
  256. ;         Server Preference - SMB Information                    
  257. ; ----------------------------------------------------------
  258.  
  259. kFSSMBServiceInfoVersion        EQU        1
  260.  
  261. kFSSMBMaxNetBIOSnameLength        EQU        15
  262. kFSSMBMaxWorkGroupLength        EQU        15
  263. kFSSMBMaxCommentLength            EQU        43
  264. kFSSMBWINSAddressLength            EQU        62
  265. SMBServiceInfo            RECORD 0
  266. versionNumber             ds.w    1                ; offset: $0 (0)        ;  version number for this record 
  267. smbEnable                 ds.w    1                ; offset: $2 (2)        ;  Enable SMB, 1-enable, 0-not enable 
  268. status                     ds.w    1                ; offset: $4 (4)
  269. guestEnabled             ds.w    1                ; offset: $6 (6)        ;  Whether guest allowed for SMB 
  270. netBIOSname                 ds        Str31            ; offset: $8 (8)        ;  Server name. Limited to 15 bytes 
  271. workGroup                 ds        Str31            ; offset: $28 (40)        ;  NETBIOS group name.  Limited to 15 bytes 
  272. comment                     ds        Str63            ; offset: $48 (72)        ;  ASCII comment for the server. Limited to 43 bytes 
  273. winsEnabled                 ds.w    1                ; offset: $88 (136)        ;  Enable WINS, 1-enable, 0-not enable 
  274. winsAddress                 ds        Str63            ; offset: $8A (138)        ;  WINS IP address 
  275. sizeof                     EQU *                    ; size:   $CA (202)
  276.                         ENDR
  277. ; ----------------------------------------------------------------------
  278. ;         MIME type changes - Notify server SrvrMimeTypePrefs has changed    
  279. ; ----------------------------------------------------------------------
  280.  
  281. kFSMimeTypeChangedVersion        EQU        1
  282. MimeTypeChanged            RECORD 0
  283. version                     ds.w    1                ; offset: $0 (0)        ;  version number for this record 
  284. counter                     ds.l    1                ; offset: $2 (2)        ;  no meaning, just for notification 
  285. sizeof                     EQU *                    ; size:   $6 (6)
  286.                         ENDR
  287. ; ----------------------------------------------------------
  288. ;         IPFilter Options - Advanced option for filtering IP 
  289. ; ----------------------------------------------------------
  290.  
  291. kFSIPFilterAllow                EQU        1
  292. ;  Structure of individual filters 
  293. IPFilterStruct            RECORD 0
  294. allow                     ds.w    1                ; offset: $0 (0)        ;  0 for disallow, 1 for allow 
  295. highIPBytes                 ds.l    1                ; offset: $2 (2)
  296. lowIPBytes                 ds.l    1                ; offset: $6 (6)
  297. sizeof                     EQU *                    ; size:   $A (10)
  298.                         ENDR
  299.  
  300. kFSMaxIPFilters                    EQU        10
  301. IPFilterInfo            RECORD 0
  302. versionNumber             ds.w    1                ; offset: $0 (0)        ;  version number for this record 
  303. numFilters                 ds.w    1                ; offset: $2 (2)        ;  numberOfIPFilters 
  304. filters                     ds.b    10 * IPFilterStruct.sizeof ; offset: $4 (4)
  305. sizeof                     EQU *                    ; size:   $68 (104)
  306.                         ENDR
  307. ; ----------------------------------------------------------
  308. ;         Max connection information                            
  309. ; ----------------------------------------------------------
  310. ;   tags for this record are type:kFSCreatorSig  and attribute:kFSMacConnextion
  311. ;   this value will be used if the max connection number encoded in serial number is 250
  312. ;
  313.  
  314.  
  315. kFSServerMaxConnectionInfoVersion EQU    1
  316. ServerMaxConnectionInfo    RECORD 0
  317. version                     ds.w    1                ; offset: $0 (0)
  318. flag                     ds.l    1                ; offset: $2 (2)        ;  reserved for future use 
  319. maxConnection             ds.l    1                ; offset: $6 (6)
  320. sizeof                     EQU *                    ; size:   $A (10)
  321.                         ENDR
  322. ;  ------------------------------------------------------------------------------------------------- 
  323.     ENDIF ; __APPLESHAREFILESERVERREGISTRY__ 
  324.  
  325.